/* -*- mode: c++ -*-
** button.h
** 
** Made by Kjetil Svarstad
** 
*/

#ifndef   	BUTTON_H_
# define   	BUTTON_H_

#include <systemc.h>

#include "if.h"

//  Our beloved button class (changes are required)
class Button : public sc_module,
							 public buttonIf
							 
{
 public:
	sc_port<buttonBusIf> busp;
	bool light;
	
	Button (sc_module_name, int);
	virtual void switchLight(bool b);
	virtual void main();
	sc_signal<bool> PUSH;
	
	
 private:
	int number;
	
};


#endif 	    /* !BUTTON_H_ */
